<?php
/**
 * User:chendenan
 * Created On 2022/3/24 0024 21:13
 */
namespace app\api\command;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;
use app\common\business\Order as OrderBus;
class Order extends  Command{
    protected function configure()
    {
        //指令配置
        $this->setName('order')
            ->setDescription('the Order command');
    }
    protected function execute(Input $input, Output $output)
    {
        $obj = new OrderBus();
        while (true) {
            $obj->checkOrderStatus();
            sleep(1);
        }
        //指令输出
        $output->writeln('Order');
    }
}